package com.example.demo2.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class TimerTest {
    @Scheduled(cron = "0 * 15 * * *")
    void test(){
        System.out.println("你呗执行了");
    }
}
